package com.webservice.vo.impl;



import java.math.BigDecimal;

import com.webservice.vo.IBaseVO;


public class User implements IBaseVO{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String uname;//xml name
	private String ucode;
	private BigDecimal uage;
	private String id;
	
	@Override
	public String getTableName() {
		return "tb_user";
	}
	
	@Override
	public String getPrimaryKey() {
		return "id";
	}
	public String getUname() {
		return uname;
	}
	public void setUname(String uname) {
		this.uname = uname;
	}
	public String getUcode() {
		return ucode;
	}
	public void setUcode(String ucode) {
		this.ucode = ucode;
	}
	public BigDecimal getUage() {
		return uage;
	}
	public void setUage(BigDecimal uage) {
		this.uage = uage;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	public User(){
		
	}
	
	public User(String uname, String ucode, BigDecimal uage){
		this.uname=uname;
		this.ucode=ucode;
		this.uage=uage;
	}
	
	@Override
	public String toString() {
		return " id :"+this.id+" 姓名："+this.uname+" 编码："+this.ucode+" 年龄："+this.uage;
	}

	@Override
	public String getRootTag() {
		return "user";
	}
}
